<?php

class Core_Form_Admin_I18n_Length extends Form
{
	function init()
	{
		$this -> addChild('text', 'id', array(
			'readonly' => true,
			'label' => 'ID',
			'desc' => 'Readonly.'
		));

		$this -> addChild('text', 'title', array(
			'required' => true,
			'desc' => 'English name of this weight class',
			'label' => 'Name'
		));

		$this -> addChild('text', 'unit', array(
			'label' => 'Unit',
			'required' => true
		));

		$this -> addChild('text', 'format', array(
			'label' => 'Format Position',
			'required' => true,
		));

		$this -> addChild('text', 'precision', array(
			'required' => true,
			'label' => 'Precision'
		));

		$this -> addChild('text', 'value', array(
			'required' => true,
			'label' => 'Value'
		));

		$this -> addChild('select', 'is_active', array(
			'label' => 'Active',
			'desc' => 'Visitor can choose this language if it is active.',
			'required' => true,
			'multiOptions' => array(
				'No',
				'Yes'
			)
		));

		$this -> addChild('select', 'is_lock', array(
			'label' => 'Lock',
			'desc' => 'Other staff can edit this weight class.',
			'required' => true,
			'multiOptions' => array(
				'No',
				'Yes'
			)
		));

		$this -> addChild('group', 'buttons');
		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
